/**
 * 
 */
package com.yidu.menuProject.common;

/**
 * �������--
 * @author sylval
 * @date 2018��6��12�� ����11:09:58
 * @version 1.0
 */
public class Page {
	private int nowpage=1;//��ǰҳ��
	private int start;//��ѯ��ʼ������
	private int rows=1;//ÿҳ��ʾ������
	private int totalRows;//������
private int totalPage;//总页数
	
	public int getTotalPage() {
		if(totalRows%rows==0){
			totalPage = totalRows/rows ; //50    5  应该多少页 11
		}else{
			totalPage = totalRows/rows+1 ;
		}
		
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getNowpage() {
		return nowpage;
	}
	public void setNowpage(int nowpage) {
		this.nowpage = nowpage;
	}
	public int getStart() {
		start=(nowpage-1)*rows;
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getRows() {
		return rows;
	}
	public void setRows(int rows) {
		this.rows = rows;
	}
	public int getTotalRows() {
		return totalRows;
	}
	public void setTotalRows(int totalRows) {
		this.totalRows = totalRows;
	}
}
